package cn.buk.qms.service;

import cn.buk.tms.sc.SearchSmsCriteria;
import cn.buk.tms.dto.SmsDetailDto;

import java.util.List;

/**
 * @date: 2014-10-13
 * @author yfdai
 */
public interface SmsService {

    /**
     * 查找短信
     * @param enterpriseId
     * @param userId
     * @param username
     * @param sc
     * @return
     */
    List<SmsDetailDto> searchSmsDetails(int enterpriseId, int userId, String username, SearchSmsCriteria sc);

    /**
     * 保存收到的短信
     * @param enterpriseId
     * @param mobile
     * @param content
     * @return
     */
    int saveReceivedSms(int enterpriseId, String mobile, String content);

    int sendSms(String mobile, String smsContent);
}
